//smmotor.c - motor functions for use with the BEST Brain Board 
//Andrew Kovacs 
//September 30, 2008 

void allOff();
void runMotor(short motor, int deciseconds, short speed);

void allOff()
{
	int i;
	for(i = 0; i < 4; i++)
		setMotor(i, 512);

}
void runMotor(short motor, int deciseconds, short speed)
{
	setMotor(motor, speed);
	sleep(deciseconds);
	setMotor(motor, 512);
}


